/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Header Section */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fafafa;
}

.company-branding {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.logo-container {
    position: relative;
    width: 100px;
    height: 100px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.file-input {
    display: none;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
    font-size: 12px;
    text-align: center;
}

.upload-label:hover {
    color: #007bff;
}

.company-info {
    flex: 1;
}

.company-name-input {
    width: 100%;
    padding: 12px;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: white;
}

.brand-tagline-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-style: italic;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
}

.qr-container {
    width: 120px;
    height: 120px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.qr-container canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Section Styles */
section {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fafafa;
}

section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-group input[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

thead {
    background-color: #007bff;
    color: white;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    font-weight: bold;
    font-size: 14px;
}

td {
    font-size: 14px;
}

tr:hover {
    background-color: #f8f9fa;
}

.table-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.table-input:focus {
    outline: none;
    border-color: #007bff;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: #c82333;
}

/* Add Item Button */
.add-item-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.add-item-btn:hover {
    background-color: #218838;
}

/* Summary Section */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-item.grand-total {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.summary-item label {
    font-weight: bold;
    margin-right: 10px;
}

.summary-item input {
    width: 80px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
}

/* Print Section */
.print-section {
    text-align: center;
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.print-btn, .download-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.print-btn:hover {
    background-color: #0056b3;
}

.download-btn {
    background-color: #28a745;
}

.download-btn:hover {
    background-color: #218838;
}

/* Print View */
.print-view {
    display: none;
}

/* Print Media Query */
@media print {
    body {
        background-color: white;
        color: black;
        font-size: 12px;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    .header-section,
    .main-content,
    .print-section {
        display: none;
    }
    
    .print-view {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .print-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #333;
    }
    
    .print-logo-container {
        width: 80px;
        height: 80px;
    }
    
    .print-logo-container img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    
    .print-company-info {
        flex: 1;
        text-align: center;
        margin: 0 20px;
    }
    
    .print-company-info h1 {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    .print-company-info p {
        font-size: 14px;
        font-style: italic;
        color: #666;
    }
    
    .print-qr-container {
        width: 80px;
        height: 80px;
    }
    
    .print-qr-container canvas {
        max-width: 100%;
        max-height: 100%;
    }
    
    .print-details {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
        margin-bottom: 20px;
        padding: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
    }
    
    .print-details h3 {
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 10px;
        border-bottom: 1px solid #333;
        padding-bottom: 5px;
    }
    
    .print-details div {
        margin-bottom: 5px;
        font-size: 12px;
    }
    
    .print-items {
        margin-bottom: 20px;
    }
    
    .print-items table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .print-items th,
    .print-items td {
        padding: 8px;
        text-align: left;
        border: 1px solid #333;
        font-size: 12px;
    }
    
    .print-items th {
        background-color: #f0f0f0;
        font-weight: bold;
    }
    
    .print-summary {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        margin-bottom: 20px;
        gap: 5px;
    }
    
    .print-summary-item {
        margin-left: 20px;
        font-size: 12px;
    }
    
    .print-summary-item.grand-total {
        font-weight: bold;
        font-size: 14px;
    }
    
    .print-footer {
        text-align: center;
        margin-top: 30px;
        padding-top: 15px;
        border-top: 1px solid #e0e0e0;
    }
    
    .print-footer p {
        font-size: 12px;
        font-style: italic;
        color: #666;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .header-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .company-branding {
        flex-direction: column;
        text-align: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .company-name-input {
        font-size: 20px;
    }
    
    .brand-tagline-input {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 5px;
        padding: 10px;
    }
    
    .logo-container {
        width: 80px;
        height: 80px;
    }
    
    .qr-container {
        width: 100px;
        height: 100px;
    }
    
    .company-name-input {
        font-size: 18px;
    }
    
    .brand-tagline-input {
        font-size: 12px;
    }
    
    .table-container {
        font-size: 10px;
    }
    
    th, td {
        padding: 6px;
    }
    
    .print-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
}
.introduction-section{
  background-color: #ffffff;
  margin: 30px auto;
  padding: 25px;
  max-width: 850px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

h2 {
  color: #1c3d5a;
  font-size: 26px;
  margin-bottom: 12px;
}

h3 {
  color: #1c3d5a;
  font-size: 20px;
  margin-top: 24px;
}

p, li {
  color: #333;
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
}

ol, ul {
  padding-left: 22px;
}
